package com.sjd.wx.utils;

import com.sjd.wx.constant.ConfigConstant;

import javax.servlet.http.HttpServletRequest;

/**
 * @author maple
 * 小程序工具类
 */
public class WxMaUtil {
    /**
     * 通过request获取appId
     *
     * @param request
     * @return
     * @throws Exception
     */
    public static String getAppId(HttpServletRequest request) {
        return request.getHeader(ConfigConstant.HEADER_APP_ID);
    }
}
